﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemeberMain.Master" AutoEventWireup="true" CodeBehind="MakingDonation.aspx.cs" Inherits="outREACH.MakingDonation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li><a id="A1" href="~/HomeMem.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/Education/EducationMem.aspx" runat="server">EDUCATION</a></li>
					<li><a id="A3" href="~/Medical/MedicalMem.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/Infrastructure/InfrastructureMem.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li class="current_page_item"><a id="A5" href="~/Donation/DonationMem.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_Mem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" 
                PostBackUrl="~/HomeMem.aspx" />
		</div>
	</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel11" runat="server" Height="1030px" 
        Font-Size="13pt" ForeColor="Black">
        <p>
            <asp:Label ID="don" runat="server" Font-Bold="True" Font-Italic="True" 
            Font-Size="20pt" Text="DONATION - MAKING A DONATION"></asp:Label>
            <br />
        </p>
        <p>
            Fill up the details below to donate your money to the developing countries:</p>
        <p>
            Credit Card Name:
            <asp:TextBox ID="TextBox19" runat="server" Width="170px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                ControlToValidate="TextBox19" ErrorMessage="Last name is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;</p>
        <p>
            Credit Card Number:
            <asp:TextBox ID="TextBox4" runat="server" Height="23px" Width="221px" 
                ontextchanged="TextBox4_TextChanged" MaxLength="16"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="TextBox4" ErrorMessage="Credit card number is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;
        </p>
        <p>
            CVV Number:
            <asp:TextBox ID="TextBox20" runat="server" Height="25px" TextMode="Password" 
                Width="71px" MaxLength="3"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                ControlToValidate="TextBox4" ErrorMessage="Please enter a CVC number" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;</p>
        <p>
            Payment Type:
            <asp:DropDownList ID="DropDownList4" runat="server" 
                onselectedindexchanged="DropDownList4_SelectedIndexChanged" Width="100px">
                <asp:ListItem>Master</asp:ListItem>
                <asp:ListItem>Visa</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="DropDownList4" ErrorMessage="Select a payment type" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Country:&nbsp;<asp:DropDownList ID="DropDownList8" runat="server" 
                DataSourceID="ObjectDataSource1" DataTextField="Country" 
                DataValueField="Country" 
                onselectedindexchanged="DropDownList8_SelectedIndexChanged" Width="116px">
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="DropDownList8" ErrorMessage="Select a country" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
        <p>
            City:&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="TextBox15" ErrorMessage="Please enter a city" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Billing Address:</p>
        <p>
            <asp:TextBox ID="TextBox12" runat="server" Height="63px" TextMode="MultiLine" 
                Width="375px"></asp:TextBox>
        </p>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="TextBox12" ErrorMessage="Enter Address to be billed" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Zip Code:
            <asp:TextBox ID="TextBox13" runat="server" Width="151px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="TextBox13" ErrorMessage="Zip Code is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Email:
            <asp:TextBox ID="TextBox10" runat="server" Width="327px" Height="26px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="TextBox14" ErrorMessage="Please enter a email" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Contact Number:
            <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
            &nbsp;(HP)&nbsp;&nbsp;&nbsp;</p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
            &nbsp;(Home)&nbsp;</p>
        <p>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                ControlToValidate="TextBox9" ErrorMessage="Please enter contact number" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Section:&nbsp;<asp:DropDownList ID="DropDownList5" runat="server" Width="150px">
                <asp:ListItem>Select</asp:ListItem>
                <asp:ListItem>Education</asp:ListItem>
                <asp:ListItem>Medical</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                ControlToValidate="DropDownList5" ErrorMessage="Please select a section" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            </p>
        <p>
            Country to donate:
            <asp:DropDownList ID="DropDownList6" runat="server" Width="200px" DataSourceID="ObjectDataSource2" 
                DataTextField="developingCountries" DataValueField="developingCountries" 
                onselectedindexchanged="DropDownList6_SelectedIndexChanged">
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                ControlToValidate="DropDownList6" ErrorMessage="Please select a country" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            NGOs:
            <asp:DropDownList ID="DropDownList9" runat="server" Width="200px">
                <asp:ListItem>Friend of China Foundation</asp:ListItem>
                <asp:ListItem>Smile Foundation</asp:ListItem>
                <asp:ListItem>Uday Foundation</asp:ListItem>
                <asp:ListItem>African Amercian Islamic Insitutes</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p>
            Amount to Donate (SGD$):
            <asp:TextBox ID="TextBox14" runat="server" Width="140px" 
                ontextchanged="TextBox14_TextChanged"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                ControlToValidate="TextBox14" ErrorMessage="Enter amount" ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Click the &quot;Donate&quot; Button below to Donate your money to help those who are in 
            need.&nbsp;</p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Donate" runat="server" Text="Donate" Width="100px" 
                onclick="Donate_Click" Font-Size="12pt" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Cancel" runat="server" 
            PostBackUrl="~/Donation/DonationMem.aspx" Text="Cancel" Width="100px" 
                CausesValidation="False" Font-Size="12pt" />
            &nbsp;&nbsp;</p>
        <p>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" 
                SelectMethod="GetCountries" TypeName="outREACH.App_Code.Countries">
            </asp:ObjectDataSource>
        </p>
        <p>
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="getDCList" 
                TypeName="outREACH.App_Code.DevelopingCountries1" 
                OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
        </p>
    </asp:Panel>
&nbsp;</asp:Content>
